<?php echo $this->load->view('meta');?>
<link rel="stylesheet" href="<?=base_url();?>css/static.css" />
<title>Prayer Request :: Chi Alpha at NCSU and Meredith</title>
<script type="text/javascript">
	function show(id,html){
		
		if($("#anonymous:checked").val() != null) $("#"+id).html(html).animate({opacity: 0.9}).fadeIn();
		else $("#"+id).animate({opacity: 1.0}).fadeOut();
	}
</script>
<style type="text/css">
label {display:inline;}
</style>
<?php echo $this->load->view('header'); ?>
<?php echo validation_errors(); ?>
<h2>prayer request</h2>
<div id="content">
<p>To submit your prayer request fill out the form below.</p>
<?php $attributes = array('style' => 'width:400px');?>
<?php echo form_open('xa/prayer',$attributes); ?>
<fieldset>
	<ol class="">
		<li><label for="email">email</label>
			<?php echo form_input('email',set_value('email'));?><input value="anonymous" id="anonymous" name="anonymous" type="checkbox" style="width:8px;" onClick="show('anonymous_info','Your email address won\'t be shown, but the prayer team will still be able to reply to you.')"><label for="anonymous" style="padding-left:5px;">remain anonymous</label><div id="anonymous_info" style="text-align: left;margin: 10px auto;padding: 5px;padding-left: 30px;background: #D4E0EE url(../img/icons/information.png) no-repeat 2% 50%;border: 1px solid #A8C3E1;display:none;"></div></li>
		
		<li><label for="prayer">your prayer request</label>
		<textarea name="prayer" style="height:250px;margin-top:5px;"><?php echo set_value('prayer'); ?></textarea></li>
		<li><?php echo form_submit('','submit')?></li>
	</ol>
</fieldset>
<?php echo form_close()?>
</div>
<?php echo $this->load->view('footer');?>